<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * index.php
 * @author ranuandra
 *
 * 24 Apr 2012 11:20:36
 *
 * 
 */
?>
    <header class="" id="overview">
      <div class="page-header">
          <h1><span class="blue">Profile</span> Anda</h1>
      </div>
    </header>
    <div class="row paper">
    

		
    	<div class="span12">
			<div class="tabbable tabs-left">
				    <ul class="nav nav-tabs">
				    	<li>
					    	<div id="photo">
					    		<!-- <div class="paperclip"></div> -->
								<div class="thumbnail">
									<?php 
									if($data->mstpelamar->photo == "")
									{
									?>
										<img src="<?php echo URL::base()?>assets/images/blank.jpg" />
									<?php 
									}
									else 
									{
									?>
										<img src="<?php echo URL::base()?>assets/photo/<?php echo $data->mstpelamar->photo ?>" />
									<?php 
									}
									?>
									<div id="upphoto"> <a href="<?php echo URL::base()?>user/editphoto" class="fancybox"><i class="icon-pencil"></i> Upload</a></div>
								</div>	
							</div>				    	
				    	</li>
					    <li class="active"><a href="#tab1" data-toggle="tab">Data Pribadi</a></li>
					    <li><a href="#tab2" data-toggle="tab">Pendidikan</a></li>
					    <li><a href="#tab3" data-toggle="tab">Pendidikan Informal</a></li>
					    <li><a href="#tab4" data-toggle="tab">Pengalaman Kerja</a></li>
					    <li><a href="#tab5" data-toggle="tab">Pengalaman Organisasi</a></li>
					    <li><a href="#tab6" data-toggle="tab">Pengetahuan & Ketrampilan</a></li>
					    <li><a href="#tab7" data-toggle="tab">Bahasa</a></li>
					    <li><a href="#tab10" data-toggle="tab">Minat</a></li>
					    <li><a href="#tab13" data-toggle="tab">Foto</a></li>
					    <li><a href="#tab14" data-toggle="tab">Reference</a></li>
					    <li><a href="#tab9" data-toggle="tab">Keluarga</a></li>
					    <li><a href="#tab11" data-toggle="tab">Konsep Diri</a></li>
					    <li><a href="#tab12" data-toggle="tab">Lain-lain</a></li>

				    </ul>
			    <div class="tab-content">
				    <div class="tab-pane active" id="tab1">
					<?php 
					if(isset($pelamar))
					{
						echo $pelamar;
					}
					?>
				    </div>
				    <div class="tab-pane" id="tab2">
					<?php if(isset($pendidikan))
					{
						
						echo $pendidikan;
					}
					?>
				    </div>
				    <div class="tab-pane" id="tab3">
					<?php if(isset($kursus))
					{	
						echo $kursus;
					}		
					?>			
				    </div>
				    <div class="tab-pane" id="tab4">
				    	<h2>Data Pengalaman Kerja</h2>
						<?php 
						if(isset($pengalaman))
						{
							echo $pengalaman;
						}
						?>
				    </div>
				    <div class="tab-pane" id="tab5">
				    	<h2>Data Pengalaman Organisasi</h2>
						<?php 
						if(isset($organisasi))
						{
							echo $organisasi;
						}
						?>
				    </div>
				    <div class="tab-pane" id="tab6">
						<?php 
						if(isset($ketrampilan))
						{
							echo $ketrampilan;
						}
						?>					
				    </div>
				    <div class="tab-pane" id="tab7">
						<?php 
						if(isset($bahasa))
						{
							echo $bahasa;
						}
						?>							
				    </div>
				    <div class="tab-pane" id="tab10">
					<?php 
					if(isset($minat))
					{
						echo $minat;
					}
					?>
				    </div>
				    <div class="tab-pane" id="tab9">
						<?php 
						if(isset($keluarga))
						{
							echo $keluarga;
						}
						?>
				    	<?php 
				    	if(isset($keluargakandung))
				    	{
				    		echo $keluargakandung;
				    	}
				    	?>
				    </div>

				    <div class="tab-pane" id="tab11">
						<?php 
						if(isset($konsepdiri))
						{
							echo $konsepdiri;
						}
						?>						
				    </div>
				    <div class="tab-pane" id="tab12">
						<?php 
						if(isset($lainlain))
						{
							echo $lainlain;
						}
						?>	
				    </div>
				    <div class="tab-pane" id="tab13">
				    	<h2>Foto</h2>
		                <div class="form-container">
		                	<?php echo Form::open(URL::base().'user/upload', array('enctype'=>'multipart/form-data', 'class' => 'form-horizontal'));?>
		                    <fieldset>
								<legend>Photo</legend>
		                        <div><label>File</label>
		                        	<?php echo Form::file('photo', array()) ?>
		                        </div>
		                    	<div>
		                    		<label>&nbsp;</label>
		                        	<?php echo Form::submit('submit', 'Upload')?>
		                    	</div>
		 
		
		                    </fieldset>
		                  </div>
		                  <div>
		                  	<?php 
		                  	if(isset($fotos))
		                  	{
		                  	?>
		                  		<ul class="thumbnails">
		                  	<?php 
		                  		foreach($fotos as $foto)
		                  		{
		                  	?>
		                  			<li class="span4">
		                  				<a href="<?php echo URL::base()."assets/photo/".$foto->filename?>" class="fancybox"><img src="<?php echo URL::base()."assets/photo/".$foto->filename?>" /></a>
		                  			</li>
		                  	<?php 	
		                  		}
		                  	?>
		                  		</ul>
		                  	<?php 
		                  	}
		                  	?>
		                  </div>

				    </div>
				    <div class="tab-pane" id="tab14">
					<?php 
					if(isset($reference))
					{
						echo $reference;
					}
					?>
				    </div>
				</div>
		    </div>    		
    	</div>
    </div>
    